import React,{Component} from "react"
import Slide from '../slider.jsx'
import TopList from './index_toplist1.jsx'
import  IndexContent from  './index_content.jsx'


export  default  class  Indexs  extends Component{
    constructor(props) {
        super(props)
        this.state = {
            list: [{id:0,name: "新闻", url: "/news"},
                {id:1,name: "财经", url: "/money"},
                {id:2,name: "娱乐", url: "/happy"},
                {id:3,name: "体育", url: "/sport"},
                {id:4,name: "更多", url: "/more"},
                {id:5,name: "军事", url: "/soldier"},
                {id:6,name: "NBA", url: "/nba"},
                {id:7,name: "应用", url: "/app"},
                {id:8,name: "科技", url: "/sci"},
                {id:9,name: "星座", url: "/xz"}]
        }
    }
    getmsg(){
        return this.state.list
    }
    render(){
        return (
            <div>
                <TopList getmsg={this.getmsg.bind(this)}/>
                <Slide />
                <IndexContent getmsg={this.getmsg.bind(this)}/>
            </div>
        )
    }
}